
import type { App } from 'vue'

import permission from './permission'
import selectDir from './el-selectDir';
import copy from './copy'
import debounce from "./debounce"
import throttle from "./throttle"
// import dialogWidth from './dialogWidth';
const directivesList: any = {
    selectDir,
    permission,
    copy,
    debounce,
    throttle,
}

const setDirectives = {
    install(app: App<Element>) {
        Object.keys(directivesList).forEach((key) => {
            app.directive(key, directivesList[key])
        })
    },
}

export default setDirectives